	
	jQuery().ready(function(){
		$.jgrid.defaults.styleUI = 'Bootstrap';
		$.jgrid.defaults.responsive = true;
		jQuery('#look_works_jDataGrid1').jqGrid({
			datatype: 'local',
			autowidth: true,
			cellEdit: false,
			gridview: true,
			altRows:true,
			viewrecords: true,
			colNames:['项目编号','项目名称','委托单位名称','委托单位联系人','委托单位联系方式','派单人','派单人联系方式','完成情况','最后更新时间','工单提交日期','编辑'],
			colModel:[
				{name:'A0',index:'A0', width:100},
				{name:'A1',index:'A1', width:149},
				{name:'A2',index:'A2', width:162},
				{name:'A3',index:'A3', width:121},
				{name:'A4',index:'A4', width:180},
				{name:'A5',index:'A5', width:64},
				{name:'A6',index:'A6', width:189},
				{name:'A7',index:'A7', width:83},
				{name:'A8',index:'A8', width:128},
				{name:'A9',index:'A9', width:133},
				{name:'A10',index:'A10', width:77}
			],
			width: 1002,
			height: 391,
			shrinkToFit: false,
			rowNum:10,
			pager: jQuery('#look_works_jDataGrid1_pager')
		}).navGrid('#look_works_jDataGrid1_pager',{edit:false,add:false,del:false,refresh:false,search:false});
		var look_works_jDataGrid1data=[
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
			{A0:'',A1:'',A2:'',A3:'',A4:'',A5:'',A6:'',A7:'',A8:'',A9:'',A10:''},
		]
		for(i in look_works_jDataGrid1data){
			$('#look_works_jDataGrid1').jqGrid('addRowData',i+1,look_works_jDataGrid1data[i]);
		}
		$('#look_works_jDataGrid1').closest('.ui-jqgrid-bdiv').css({'overflow-y': 'auto'});
		$('#look_works_jDataGrid1').trigger('reloadGrid');
	})
	
	$('#look_works_jButton4').click(function(e) {
		window.open('add_work.html','index_jIframe1');
	})
